package com.ccp.dev.workflow.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.workflow.model.CommuReceiver;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassDescribe:沟通接收人 Dao类
 *
 * @author :jiayueqiao
 * Date: 2019-09-04
 * Since:1
 */
public interface CommuReceiverDao extends IBaseMapper<CommuReceiver, String> {

    /**
     * 根据任务id和接收人id进行查询
     * @param taskId 任务id
     * @param recevierId 接收人id
     * @return CommuReceiver
     */
    CommuReceiver getByTaskReceiver(@Param("taskId") String taskId, @Param("recevierId") String recevierId);

    /**
     * 根据意见ID获取接收人。
     * @param opinionId 意见id
     * @return list
     */
    List<CommuReceiver> getByOpinionId(String opinionId);

    /**
     * 根据taskId进行删除
     * @param taskId
     */
    void delByTaskId(String taskId);
}
